export const useResize = (handler: (e?: any) => void) => {
  window.addEventListener('resize', handler)
  return () => {
    window.removeEventListener('resize', handler)
  }
}
